
from itsdangerous import Signer, TimestampSigner

# 基础签名示例
signer = Signer('secret-key')
signed_data = signer.sign('critical data')
print(f"签名结果: {signed_data}")
verified = signer.unsign(signed_data)
print(f"验证结果: {verified}")

# 时效性加密示例
 